<?php
class App{

	/**
	 * application.ini
	 */
	public $_config = array();

	/**
	 *
	 */
	protected $_bootstrap;

	public function __construct( $config ){
		$this->_config = $config;
	}

	/**
	 * Bootstrap app
	 */
	private function getBootstrap(){
		if( NULL == $this->_bootstrap ){
			require_once "Bootstrap.php";
			$this->_bootstrap = new Bootstrap($this);	
		}
		return $this->_bootstrap;
	}

	/**
	 * run app
	 */
	public function run(){
		$this->getBootstrap()->run();
	}

}

?>
